@using Spectre.Console
@namespace RazorConsole.Components

<div
    class="figlet"
    data-content="@Content"
    data-justify="@justifyAttribute"
    data-style="@styleAttributes"
/>

@code {
    private string justifyAttribute => Justify.ToString();
    private string styleAttributes => new Style(Color).ToMarkup();

    [Parameter]
    public string Content { get; set; } = string.Empty;
    [Parameter]
    public Justify Justify { get; set; } = Justify.Center;
    [Parameter]
    public Color Color { get; set; } = Color.Default;
}
